<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<link href="http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz" rel="stylesheet" type="text/css" />
		<link href="<%= request.getContextPath() %>/css/basic.css" rel="stylesheet" type="text/css">
		<link href="<%= request.getContextPath() %>/css/exvalidation.css" rel="stylesheet" type="text/css">
		<script src="http://www.google.com/jsapi"></script>
		<script>
			google.load("jquery", "1.7.1");
		</script>
		<title>イベント一覧</title>
	</head>
	<body>
		<form>
			<h1>Event List</h1>
			<fieldset id="event-list">
			<c:forEach var="event" items="${eventList}">
				<div style="margin: 5px;">
						<label>イベント名:</label>
						<a href="<%= request.getContextPath() %>/detail?id=<c:out value='${event.id}'/>">
							<span id="disp"><c:out value="${event.name}" escapeXml="false"/></span>
						</a>
				</div>
			</c:forEach>
			</fieldset>
		</form>
	</body>
</html>	